package com.cs.club.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cs.club.infra.basic.entity.ClubInfo;
import com.cs.club.infra.basic.mapper.ClubInfoMapper;
import com.cs.club.infra.basic.service.ClubInfoService;
import org.springframework.stereotype.Service;

@Service
public class ClubInfoServiceImpl extends ServiceImpl<ClubInfoMapper, ClubInfo> implements ClubInfoService {
    @Override
    public Boolean addClubInfo(ClubInfo clubInfo) {
        return save(clubInfo);
    }

    @Override
    public Boolean deleteClubInfo(ClubInfo clubInfo){
        clubInfo.setIsDelete(1);
        return updateById(clubInfo);
    }

    @Override
    public Boolean updateClubInfo(ClubInfo clubInfo) {
        return updateById(clubInfo);
    }
}
